package bifurcacion;

public class ArmaBuilder {
	private Arma arma;
	
	public ArmaBuilder() {
		this.arma = new Arma();
	}
	
	public Arma build(){
		return this.arma;
	}
	
	public ArmaBuilder withNombre(String nombre){
		arma.setNombre(nombre);
		return this;
	}
	
	public ArmaBuilder withTipoArma(TipoArma tipo){
		arma.setTipo(tipo);
		return this;
	}
	
	public ArmaBuilder withAtaque(int ataque){
		arma.setAtaque(ataque);
		return this;
	}
	
	public ArmaBuilder withDefensa(int defensa){
		arma.setDefensa(defensa);
		return this;
	}
}